Skip to content

Conversation

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Oct 29, 2025

close #251

macOS uses C++20 (required for Node.js v24+)

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

@fengmk2 fengmk2 requested a review from Copilot October 29, 2025 13:44
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 29.12%. Comparing base (293abe8) to head (c1bfa26).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #253   +/-   ##
=======================================
  Coverage   29.12%   29.12%           
=======================================
  Files          10       10           
  Lines         309      309           
=======================================
  Hits           90       90           
  Misses        219      219           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates GitHub Actions workflows to add explicit permissions and expand Node.js version support. The changes include updating the release workflow configuration and adding Node.js 24 to the CI matrix.

  • Added explicit permissions to the release workflow for better security and OIDC token support
  • Updated release workflow to use npm-release.yml instead of node-release.yml and removed NPM_TOKEN dependency
  • Extended CI test coverage to include Node.js 24

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/release.yml Added permissions block, renamed job to "NPM", switched to npm-release.yml workflow, and removed NPM_TOKEN secret
.github/workflows/nodejs.yml Added Node.js 24 to the CI test matrix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Update binding.gyp to use C++20 standard for macOS (Linux stays on C++17)
- Node.js v24 requires C++20 or later
- Add comprehensive CLAUDE.md documentation for future development

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@fengmk2 fengmk2 marked this pull request as ready for review October 29, 2025 14:04
@fengmk2 fengmk2 requested a review from Copilot October 29, 2025 14:04
- Linux uses C++17
- macOS uses C++20 (required for Node.js v24+)
- Windows uses MSVC default settings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

binding.gyp:66

  • The Linux build configuration still uses C++17, but the documentation in CLAUDE.md states that Node.js v24+ requires C++20. This inconsistency will cause Linux builds to fail on Node.js v24. Update the Linux cflags to use '-std=c++20' to match the macOS configuration and documentation.
                        "-std=c++17",

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengmk2
Copy link
Member Author

fengmk2 commented Oct 29, 2025

需要先搞定 binary 编译再合并发布。

@fengmk2 fengmk2 marked this pull request as draft October 29, 2025 14:29
@fengmk2 fengmk2 self-assigned this Oct 29, 2025
@fengmk2 fengmk2 marked this pull request as ready for review October 29, 2025 17:51
@fengmk2 fengmk2 merged commit 10dd462 into master Oct 29, 2025
26 checks passed
@fengmk2 fengmk2 deleted the support-nodejs-v24 branch October 29, 2025 17:56
fengmk2 pushed a commit that referenced this pull request Oct 29, 2025
[skip ci]

## 3.1.0 (2025-10-29)

* feat: build from Node.js v24 (#253) ([10dd462](10dd462)), closes [#253](#253)
@github-actions
Copy link

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

手动 build 一个 node v24 版本

2 participants